package com.mars.module.admin.service;

import com.mars.module.admin.entity.ApUserChefOrder;
import com.mars.common.response.PageInfo;
import com.mars.module.admin.request.ApUserChefRecordRequest;
import com.mars.module.admin.response.ApChefAppointmentResponse;
import com.mars.module.admin.response.ApUserChefRecordResponse;

import java.util.List;

/**
 * 厨师预约记录接口
 *
 * @author mars
 * @date 2024-03-08
 */
public interface IApUserChefOrderService {
    /**
     * 新增
     *
     * @param param param
     * @return ApUserChefRecord
     */
    ApUserChefOrder add(ApUserChefRecordRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Long id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Long> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(ApUserChefRecordRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return ApUserChefRecord
     */
    ApUserChefOrder getById(Long id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<ApUserChefRecord>
     */
    PageInfo<ApUserChefRecordResponse> pageList(ApUserChefRecordRequest param);


    /**
     * 查询所有数据
     *
     * @return List<ApUserChefRecord>
     */
    List<ApUserChefOrder> list(ApUserChefRecordRequest param);

    /**
     * 我的预约
     *
     * @param request request
     * @return List<ApChef>
     */
    List<ApChefAppointmentResponse> appointmentRecord(ApUserChefRecordRequest request);

    /**
     * 预约厨师
     *
     * @param request request
     */
    void appointment(ApUserChefRecordRequest request);


}
